<script type="text/html" template lay-done="layui.data.done(d);">
    <div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-StudioManagement-addSubAnchor" id="LAY-app-StudioManagement-addSubAnchor">
        <input type="hidden" name="roomId" value="{{d.params.data.roomId || '' }}" />

        <div class="layui-form-item">
            <label for="subAnchorWechat" class="layui-form-label">主播副号微信号</label>
            <div class="layui-input-inline layui-inline-5">
                <input name="username" value="{{d.params.data.username}}" lay-verify="required" class="layui-input" lay-reqText="请输入主播副号微信号" placeholder="请输入主播副号微信号" />
            </div>
            <div class="layui-form-mid">如果未实名认证，需要先前往“小程序直播”小程序进行实名验证, <a href="https://res.wx.qq.com/op_res/9rSix1dhHfK4rR049JL0PHJ7TpOvkuZ3mE0z7Ou_Etvjf-w1J_jVX0rZqeStLfwh" target="_blank" class="text-red">【点击前往认证】</a></div>
        </div>
        <div class="layui-form-item text-right core-hidden">
            <input type="button" class="layui-btn" lay-submit lay-filter="LAY-app-StudioManagement-addSubAnchor-submit" id="LAY-app-StudioManagement-addSubAnchor-submit" value="确认添加">
        </div>
    </div>
</script>
<script>
    var debug = layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
            function () {
                var $ = layui.$
                    , form = layui.form
                    , admin = layui.admin
                    , laydate = layui.laydate
                    , upload = layui.upload
                    , cropperImg = layui.cropperImg
                    , coreHelper = layui.coreHelper;

                form.verify({
                });

                //重载form
                form.render(null, 'LAY-app-StudioManagement-addSubAnchor');
            })
    };
</script>
